package com.key.mapper;

import com.key.entity.AssetFieldLeft;
import com.key.entity.ModelLabel;
import com.key.entity.Photo;
import com.key.entity.PhotoLabel;


import java.util.List;

public interface LabelMapper {
    List<AssetFieldLeft> selectAllLeft();
    AssetFieldLeft selectLeftById(Integer id);
    int insertPhoto(Photo photo);
    Photo selectPhotoByUrl(String url);
    int insertPhotoLabel(PhotoLabel photoLabel);
    int deleteModelLabel();
    int insertModelLabel(ModelLabel modelLabel);
    List<Photo> findPhotoByType(Integer type);
    int selectPhotoLabelByIdSum(String idSum);
    ModelLabel selectModelLabelByPhotoId(Integer photoId);
    int deletePhotoById(Integer photoId);
    int deletePhotoLabelByPhotoId(Integer photoId);
}
